const APIConfig = require('./apiConfig');

const apiConfig = new APIConfig();

apiConfig
  .add('master', {
    test: 'https://api.juejin.cn',
    prod: 'https://api.juejin.cn'
  })
  .add('jianshu', {
    test: 'https://www.jianshu.com',
    prod: 'https://www.jianshu.com'
  })
  .add('sifou', {
    test: 'https://segmentfault.com',
    prod: 'https://segmentfault.com'
  })
  .add('node', {
    // dev: 'https://fms-service-dev.keytop.cn',
    test: 'https://fms-service-dev.keytop.cn',
    prod: 'https://fms-service.keytop.cn'
  });

module.exports = (myenv, branch) => apiConfig.get(myenv, branch);
